package com.mybatis.demo.mapper;

import com.mybatis.demo.domain.Dept;
import com.mybatis.demo.domain.Emp;

import java.util.List;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/8/7 15:14
 * @Description
 */
public interface TestMapper {
    /**
     * 一对一关联查询
     * @return
     */
    List<Emp> oneToOneQuery();

    /**
     * 多对多关联查询
     * @return
     */
    List<Dept> oneToManyQuery();
}
